<!DOCTYPE html>
<html>
<head>
    <title>js面向对象-类式继承</title>
    <meta charset="utf-8"/>
    <script src="../../js/jquery-1.10.1.min.js"></script>
    <script src="../../js/json2.js"></script>
    <script>

        console.log(/xyz/.test("xyz")); // true
        console.log(/xyz/.test(function(){"xyz";})); // false
        console.log(/xyz/.test(function(){return "xyz";})); // true
        console.log(/xyz/.test(function(){return xyz;})); // true
        console.log(/xyz/.test(function(){return axyz;})); // true
        console.log(/xyz/.test(function(){return "axyz";})); // true
        console.log(/xyz/.test(function(){return "xayz";})); // false

        alert((function(){"xyz";}).toString());

    </script>
</head>
<body>

</body>
</html>